
#include "OgreApp.h"

#define WIN32_LEAN_AND_MEAN
#include "windows.h"

extern "C" {

int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, int)
{
	// Create application object
	app = new OgreApp();

	try 
	{
		app->go();
	} 
	catch(Ogre::Exception& e) 
	{
		MessageBox(NULL, e.getFullDescription().c_str(), "An exception has occured!", 
			MB_OK | MB_ICONERROR | MB_TASKMODAL);
	}

	delete app;

	return 0;
}

}
